using System;
using System.Drawing;
using System.Windows.Forms;
class MyForm:Form
{
	public MyForm()
	{
		MenuItem miFile = new MenuItem(
										"&File",
										new MenuItem[]
											{
											new MenuItem("&Open",new EventHandler(OnFile)),
											new MenuItem("&Save",new EventHandler(OnFile))
											}
										);
		MenuItem miEdit =new MenuItem("&Edit",
										new MenuItem[]
											{
												new MenuItem("&Copy",new EventHandler(OnEdit)),
												new MenuItem("&Paste",new EventHandler(OnEdit))
											}
										);

		MainMenu mn = new MainMenu(new MenuItem[]{miFile,miEdit,
									new MenuItem("&Zhu",new EventHandler(OnZhu))
												 });
		Menu = mn;
		ForeColor = SystemColors.WindowText;
		BackColor = SystemColors.Window;


		StatusBar sb = new StatusBar();
		sb.Parent = this;
		sb.Text="My Inital Status Bar";
	}

	private void InitializeComponent()
	{
		// 
		// MyForm
		// 
		this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
		this.ClientSize = new System.Drawing.Size(115, 486);
		this.Name = "MyForm";

	}

	protected void OnZhu(object sender,EventArgs ea)
	{
		MessageBox.Show("You click the zhu menu!");
	}
	protected void OnEdit(object sender,EventArgs ea)
	{
		MessageBox.Show("You click the edit menu!");
	}
	protected void OnFile(object sender,EventArgs ea)
	{
		MessageBox.Show("You click the File menu!");
	}

}
class m
{
	static void Main()
	{
		Application.Run(new MyForm());
	}
}